package com.alipay.pluginapp

import android.content.Intent
import android.os.Bundle
import android.text.Layout
import android.util.Log
import android.view.LayoutInflater


class MainPluginActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main_plugin)
        val stringExtra = intent.getStringExtra("name")
        Log.i("MainPluginActivity", stringExtra!!)
        findViewById(R.id.mBtnStart).setOnClickListener {
            val intent = Intent(that, SecondActivity::class.java)
            //这里其实调用父类的 最终会调用宿主里面的startActivity方法，下面会对其进行重写
            startActivity(intent)
        }
    }
}